package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.AppTab;
import com.scpii.universal.hibernate.entity.AppTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class AppTabService implements BaseInterface<AppTab> {
	private static final Logger log = LoggerFactory.getLogger(AppTabService.class);
//	private BaseDao<AppTab> appTabDao = SpringBeanFactory.appTabDao;
	private BaseDao<AppTab> appTabDao;

	public AppTab get(Integer id) throws Exception {
		return appTabDao.get(id);
	}

	public List<AppTab> getAll() throws Exception {
		return appTabDao.getAll();
	}

	public AppTab get(String propertyName, Object value) throws Exception {
		return null;
	}

	public List<AppTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(AppTab obj) throws Exception {

	}

	public void update(AppTab obj) throws Exception {

	}

	public void delete(AppTab obj) throws Exception {
		
	}

	public void delete(Integer id) throws Exception {

	}

	public List<AppTab> hqlGetList(String hql, Map<String, Object> argsMap)
			throws Exception {
		return appTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		appTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return appTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<AppTab> sqlGetList(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return appTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		appTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return appTabDao.sqlGetNum(sqls, argsMap);
	}
	//Setter

	public void setAppTabDao(BaseDao<AppTab> appTabDao) {
		this.appTabDao = appTabDao;
	}
}